package com.turnengine.client.local.unit.command.gwt;

import com.google.common.annotations.GwtCompatible;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.javabi.codebuilder.generated.gwt.IGeneratedRemoteService;
import com.javabi.command.errorcode.gwt.GwtErrorCodeException;
import com.turnengine.client.local.unit.bean.IUnit;
import com.turnengine.client.local.unit.enums.UnitMove;
import com.turnengine.client.local.unit.enums.UnitNode;
import com.turnengine.client.local.unit.enums.UnitType;

/**
 * The Add Unit Service.
 */
@GwtCompatible
@RemoteServiceRelativePath("AddUnitService")
public interface AddUnitService extends RemoteService, IGeneratedRemoteService {

	IUnit addUnit(long loginId, int instanceId, String name, UnitNode node, UnitType type, UnitMove move, String groupName, String factionName) throws GwtErrorCodeException;
}
